﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Project.Core.Config.Common.Utils;
using System.Diagnostics;

namespace Project.Core.Config.Config.Mq {
    public static class BuilderMqExtensions {
        public static void AddMqBuilder(this WebApplicationBuilder builder) {

            Debug.WriteLine("配置Mq");
            //配置Mq
            builder.Services.AddSingleton<IMqConnectionHelper, MqConnectionHelper>();
            //builder.Services.AddHostedService<InitialService>();
        }
    }
}
